package com.jml.门面模式.state.context;

import com.jml.门面模式.state.OrderState;
import org.springframework.stereotype.Component;

@Component
public class StateContext {
    private OrderState orderState;

    public StateContext(OrderState orderState) {
        this.orderState = orderState;
    }

    public void switchStateOrder() {
        orderState.orderService();
    }
}
